package com.ruoyi.system.domain;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author wjialong
 */
public class RedisVo implements Serializable {
    private static final long serialVersionUID = 1308126152525255714L;

    String title;
    String key;
    boolean isLeaf;
    Map<String, String> scopedSlots = new HashMap<>();

    public RedisVo() {
        scopedSlots.put("title", "custom");
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Map<String, String> getScopedSlots() {
        return scopedSlots;
    }

    public boolean getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(boolean isLeaf) {
        this.isLeaf = isLeaf;
    }

    public void setScopedSlots(Map<String, String> scopedSlots) {
        this.scopedSlots = scopedSlots;
    }

    @Override
    public String toString() {
        return "RedisVo{" +
                "title='" + title + '\'' +
                ", key='" + key + '\'' +
                ", isLeaf=" + isLeaf +
                ", scopedSlots=" + scopedSlots +
                '}';
    }
}
